package com.heima.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Sku {

 @TableId(type = IdType.ASSIGN_ID)
    private Long skuId;
    //商品名称
    private String skuName;
    //'商品图片'
    private String skuImage;
    //'基础价格'
    private Integer price;
    //'商品类别Id'
    private Integer classId;
    //'是否打折促销'
    private Integer isDiscount;
    //'净含量'
    private String unit;
    //品牌名称
    private String brandName;

    //'创建时间'
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    //'修改时间'
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
